
class OsnVideoMessageContent: OsnMediaMessageContext {
    var duration = 0

    override init(){
        super.init()
        contentType = OsnMessageContentType.video
    }
    override func toJson() ->[String:Any] {
        var json = super.toJson()
        json["duration"] = duration
        return json
    }
    static func fromJson(_ data:[String:Any]) ->OsnVideoMessageContent {
        let c = OsnVideoMessageContent()
        super.fromJson(c, data)
        c.duration = data["duration"] as? Int ?? 0
        return c
    }

}
